<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="JS\vue.js"></script>
    <link href="css\nav.css" type="text/css" rel="stylesheet">
    <link href="css\bottom.css" type="text/css" rel="stylesheet">
    <!-- <link rel="stylesheet" href="iconfont.css">  -->
    <title>狗狗牌购物车</title>
</head>
<style>
    /* 图表样式 */
     @font-face {
        font-family: 'iconfont';
        src: url('iconfont.ttf?t=1656924806247') format('truetype');
        }
        .iconfont {
        font-family: "iconfont" !important;
        font-size: 20px;
        font-style: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        }
    #app{
        width: 80%;
        margin: auto;
        /* background-color: #ccc; */
        
    }
    .row{
        justify-content: space-between;
    }
    .custom-select{
        width: 50px;
        height: 50px;
        border: 0px;
    }
    .card{
        border: 0;
        border-bottom: 1px solid #ccc
    }
    .custom-select {
    width: 90px;
    height: 50px;
    border: 0px;
    text-align: center;
}
.btn:focus {
    outline: 0;
    box-shadow: none
}



</style>
<body>
    <div id="root">
      <div class="app">
      <nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" id="sdaohang" style="z-index:99999 ;">
        <li class="nav-item pl-5">
            <a class="nav-link active" href="https://www.nike.com/cn/jordan">
                <svg height="24px" width="24px" fill="#111" viewBox="0 0 26 32">
                    <path
                        d="M14.4 5.52v-.08q0-.56.36-1t.92-.44 1 .36.48.96-.36 1-.96.4l-.24.08.08.12-.08.44-.16 1.28q.08.08.08.16l-.16.8q-.08.16-.16.24l-.08.32q-.16.64-.28 1.04t-.2.64V12q-.08.4-.12.64t-.28.8q-.16.32 0 1.04l.08.08q0 .24.2.56t.2.56q.08 1.6-.24 2.72l.16.48q.96.48.56 1.04l.4.16q.96.48 1.36.84t.8.76q.32.08.48.24l.24.08q1.68 1.12 3.36 2.72l.32.24v.08l-.08.16.24.16h.08q.24.16.32.16h.08q.08 0 .16-.08l.16-.08q.16-.16.32-.24h.32q.08 0 0 .08l-.32.16-.4.48h.56l.56.08q.24-.08.4-.16l.4-.24q.24-.08.48.16h.08q.08.08-.08.24l-.96.88q-.4.32-.72.4l-1.04.72q-.08.08-.16 0l-.24-.32-.16-.32-.2-.28-.24-.32-.2-.24-.16-.2-.32-.24q-.16 0-.32-.08l-1.04-.8q-.24 0-.56-.24-1.2-1.04-1.6-1.28l-.48-.32-.96-.16q-.48-.08-1.28-.48l-.64-.32q-.64-.32-.88-.32l-.32-.16q-.32-.08-.48-.16l-.16-.16q-.16 0-.32.08l-1.6.8-2 .88q-.8.64-1.52 1.04l-.88.4-1.36.96q-.16.16-.32 0l-.16.16q-.24.08-.32.08l-.32.16v.16h-.16l-.16.24q-.16.32-.32.36t-.2.12-.08.12l-.16.16-.24.16-.36-.04-.48.08-.32.08q-.4.08-.64-.12t-.4-.6q-.16-.24.16-.4l.08-.08q.08-.08.24-.08h.48L1.6 26l.32-.08q0-.16.08-.24.08-.08.24-.08v-.08q-.08-.16-.08-.32-.08-.16-.04-.24t.08-.08h.04l.08.24q.08.4.24.24l.08-.16q.08-.16.24-.16l.16.16.16-.16-.08-.08q0-.08.08-.08l.32-.32q.4-.48.96-.88 1.12-.88 2.4-1.36.4-.4.88-.4.32-.56.96-1.2.56-.4.8-.56.16-.32.4-.32H10l.16-.16q.16-.08.24-.16v-.4q0-.4.08-.64t.4-.24l.32-.32q-.16-.32-.16-.72h-.08q-.16-.24-.16-.48-.24-.4-.32-.64h-.24q-.08.24-.4.32l-.08.16q-.32.56-.56.84t-.88.68q-.4.4-.56.88-.08.24 0 .48l-.08.16h.08q0 .16.08.16h.08q.16.08.16.2t-.24.08-.36-.16-.2-.12l-.24.24q-.16.24-.32.2t-.08-.12l.08-.08q.08-.16 0-.16l-.64.16q-.08.08-.2 0t.04-.16l.4-.16q0-.08-.08-.08-.32.16-.64.08l-.4-.08-.08-.08q0-.08.08-.08.32.08.8-.08l.56-.24.64-.72.08-.16q.32-.64.68-1.16t.76-.84l.08-.32q.16-.32.32-.56t.4-.64l.24-.32q.32-.48.72-.48l.24-.24q.08-.08.08-.24l.16-.16-.08-.08q-.48-.4-.48-.72-.08-.56.36-.96t.88-.36.68.28l.16.16q.08 0 .08.08l.32.16v.24q.16.16.16.24.16-.24.48-.56l.4-1.28q0-.32.16-.64l.16-.24v-.16l.24-.96h.16l.24-.96q.08-.24 0-.56l-.32-.8z">
                    </path>
                </svg>
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link active" href="https://www.converse.com.cn/">
                <svg height="24px" width="24px" fill="#111" viewBox="0 0 39 33">
                    <path
                        d="M10.94 25.626l-4.236-5.501L.201 22.28l3.734-5.756L.11 10.777l6.59 2.031 4.026-5.474.14 6.785 6.64 2.175-6.594 2.446.028 6.886zm.824 7.239l13.952-16.393L11.806.107h11.697l14.871 16.389-14.8 16.369h-11.81z">
                    </path>
                </svg>
            </a>
        </li>
        <li class="nav-item dropdown ml-auto" id="srdaohang">
            <a class="nav-link text-secondary" href="#" id="bangzhu" role="button" data-toggle="dropdown"
                data-haspopup="true" aria-expanded="true" style="font-size: small;">帮助</a>
            <div class="dropdown-menu" aria-labelledby="bangzhu" id="bzxiala">
                <a class="dropdown-item" style="padding-bottom:12px;">帮助</a>
                <a class="dropdown-item" v-for="item in help" style="font-size: 14px;color: #888;">{{item}}</a>
            </div>
        </li>
        <span class="pre-help-separator ">|</span>
        <li class="nav-item dropdown">
            <a class="nav-link text-secondary" href="#" id="zhanghu" role="button" data-toggle="dropdown"
                data-haspopup="true" aria-expanded="true" style="font-size: small;">您好
                <svg class="icon-btn ripple rounded-circle icon-secondary" aria-hidden="true" data-var="glyph"
                    fill="#111" height="30px" width="30px" viewBox="0 0 24 24" role="button" data-toggle="dropdown"
                    id="zhanghuT">
                    <path
                        d="M16.44 11A5.94 5.94 0 0 0 18 7 6 6 0 0 0 6 7a5.94 5.94 0 0 0 1.56 4A5 5 0 0 0 3 16v5a1 1 0 0 0 2 0v-5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v5a1 1 0 0 0 2 0v-5a5 5 0 0 0-4.56-5zM8 7a4 4 0 1 1 4 4 4 4 0 0 1-4-4z">
                    </path>
                </svg>
            </a>
            <div class="dropdown-menu" aria-labelledby="zhanghu" id="zhxiala">
                <a class="dropdown-item" style="padding-bottom: 12px;">账户</a>
                <a class="dropdown-item" v-for="item in zhanghu" style="font-size: 14px;color: #888;">{{item}}</a>
            </div>
        </li>
    </nav>
    <!-- 下半导航条 -->
    <nav class="navbar navbar-expand-lg navbar-light bg-white fixed-top " id="xdaohang">
        <!-- 耐克图标 -->
        <li class="nav-item pl-5" id="nikeT">
            <a class="d-sm-b prl2-sm prl3-lg" href="https://www.nike.com/cn/">
                <svg class="pre-logo-svg" height="60px" width="60px" fill="#111" viewBox="0 0 69 32">
                    <path
                        d="M68.56 4L18.4 25.36Q12.16 28 7.92 28q-4.8 0-6.96-3.36-1.36-2.16-.8-5.48t2.96-7.08q2-3.04 6.56-8-1.6 2.56-2.24 5.28-1.2 5.12 2.16 7.52Q11.2 18 14 18q2.24 0 5.04-.72z">
                    </path>
                </svg>
            </a>
        </li>

        <ul id="nav2">
            <li  @mouseleave="hid()">
              <a href="#"  @mouseenter="show()">新品尝鲜</a>
              <!-- 下拉框 -->
              <div class="down" v-show="flagdown">
                <div style="margin-left: 140px;">
                <ul v-for="item in arrdown">{{item.name}}
                    <li v-for="items in item.aa">{{items}}</li>
                </ul>
               </div>
             </div>
            </li>
            <li  @mouseleave="hid2()">
              <a href="#" @mouseenter="show2()">男子</a>
              <!-- 下拉框 -->
              <div class="down" v-show="flagdown2">
                <div style="margin-left: 140px;">
                <ul v-for="item in arrdown1">{{item.name}}
                    <li v-for="items in item.aa">{{items}}</li>
                </ul>
               </div>
            </li>
            <li  @mouseleave="hid3()">
              <a href="#" @mouseenter="show3()">女子</a>
              <!-- 下拉框 -->
              <div class="down" v-show="flagdown3">
                <div style="margin-left: 140px;">
                <ul v-for="item in arrdown1">{{item.name}}
                    <li v-for="items in item.aa">{{items}}</li>
                </ul>
               </div>
            </li>
            <li  @mouseleave="hid4()">
                <a href="#" @mouseenter="show4()">儿童</a>
                <!-- 下拉框 -->
              <div class="down" v-show="flagdown4">
                <div style="margin-left: 140px;">
                <ul v-for="item in arrdown2">{{item.name}}
                    <li v-for="items in item.aa">{{items}}</li>
                </ul>
               </div>
              </li>
            <li>
                <a href="#" >专属定制</a>
            </li>
          </ul>
        <!-- 搜索框 -->
        <li class="search1">
            <form method="get" id="search2">
                <fieldset class="search">
                    <button class="btn rounded-circle" id="searchb">
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
                            class="bibi-search" viewBox="0 0 16 16">
                            <path
                                d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z">
                            </path>
                        </svg>
                    </button>
                    <input type="text" class="box inputText" id="searcht" placeholder="搜索" />
                </fieldset>
            </form>
        </li>
        <!-- 收藏 -->
        <li class="heart">
            <div class=" rounded-circle" id="heart">
                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-heart"
                    viewBox="0 0 16 16">
                    <path
                        d="m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z" />
                </svg>
            </div>
        </li>
        <!-- 购物车 -->
        <li class="buy">
            <div class=" rounded-circle" id="buy">
                <svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" class="bi bi-handbag"
                    viewBox="0 0 16 16">
                    <path
                        d="M8 1a2 2 0 0 1 2 2v2H6V3a2 2 0 0 1 2-2zm3 4V3a3 3 0 1 0-6 0v2H3.36a1.5 1.5 0 0 0-1.483 1.277L.85 13.13A2.5 2.5 0 0 0 3.322 16h9.355a2.5 2.5 0 0 0 2.473-2.87l-1.028-6.853A1.5 1.5 0 0 0 12.64 5H11zm-1 1v1.5a.5.5 0 0 0 1 0V6h1.639a.5.5 0 0 1 .494.426l1.028 6.851A1.5 1.5 0 0 1 12.678 15H3.322a1.5 1.5 0 0 1-1.483-1.723l1.028-6.851A.5.5 0 0 1 3.36 6H5v1.5a.5.5 0 1 0 1 0V6h4z" />
                </svg>
            </div>
        </li>
    </nav>
        <div class="container">
            <div class="row">
                
        <div class="left col-9">
            <!--  -->
            <div class="card mb-3">
                <div class="card-body" style="background-color: rgb(232, 231, 231);">
                  <p style="font-size: 12px;
                  ">由于近期订单处理量较大且受疫情影响，在6月1日到6月20日期间，当日达及次日达服务将暂停，普通配送订单将有延迟。敬请谅解。</p>
                </div>
              </div>
              <h4>购物车</h4>
              <!--  -->
              <h5 v-if="myshoppings.length==0">购物车为空！</h5>
              <div class="card mb-3 mt-4" v-for="(ms,index) in myshoppings">
                <div class="row no-gutters">
                  <div class="col-md-3">
                    <img :src="ms.imgsrc" alt="..." style="">
                  </div>
                  <div class="col-md-7">
                    <div class="card-body">
                      <h6 class="card-title">{{ms.name}}</h6>
                      <p class="card-text text-muted my-1" style="font-size: 16px;">{{ms.type}}</p>
                      <p class="card-text text-muted " style="font-size: 16px;">{{ms.color}}</p>
                      <span class="card-text text-muted" style="font-size: 16px;">尺码</span>
                        <select class="custom-select my-0 mr-sm-2" id="inlineFormCustomSelectPref" @click="whatsize2($event,index)">
                            <option v-for="(s2,index) in ms.size" :selected="ms.usize==s2">{{s2}}</option>
                        </select>
                        <span class="card-text"><small class="text-muted">数量</small></span>
                        <select class="custom-select my-0 mr-sm-2" id="inlineFormCustomSelectPref"@click="whatnum($event,index)">
                            <option v-for="x in num">{{x}}</option>
                        </select>
                    </div> 
                <div class="icon ml-4">
                    <a href="javascript:;" style="color: black; text-decoration: none;"><i class="iconfont mx-2" @click="addIntoCollection(index)">&#xe67c;</i></a>
                    <a href="javascript:;" style="color: black; text-decoration: none;"><i class="iconfont" @click="delShopping(index)">&#xe615;</i></a> 
                </div> 
                  </div>
                  <div class="col-md-2">
                    <p>￥{{ms.price}}.00元</p>
                  </div>
                </div>
                <span>免费配送</span>
                <span>最迟送达时间 7月10日周日 <a href="javascript:;" style="color: black;" data-toggle="modal" data-target="#exampleModal">编辑位置</a></span>
                <p style="color: #efb336; margin-top: 30px;" ><i class="iconfont mx-2">&#xe638;</i>库存有限，欲购从速</p>
              </div>
        </div>
    <!-- 点击编辑位置模态框 -->
    <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered">
          <div class="modal-content ">
            <div class="modal-header">
              <h5 class="modal-title" id="exampleModalLabel">配送选项</h5>
            </div>
            <!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button> -->
            <div class="modal-body">
                <input type="text" class="form-control" placeholder="邮政编码" aria-label="Recipient's username" aria-describedby="basic-addon2">
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-dark" data-dismiss="modal">提交</button>
            </div>
            <div class="mx-3">
                <span>免费配送</span><br>
                <span>最迟送达时间 7月10日周日 </span>
                <hr>
            </div>
           
            <p style="font-size: 12px; margin: 10px ">所有价格和日期均有可能发生变动。实际配送选项费用将在结算时计算。产品供货情况可能会延迟某些商品的加急配送。</p>
          </div>
        </div>
      </div>     
        <div class="right col-lg-3 ">
            
                <h3>摘要</h3>
                <!-- 下拉菜单相关 -->
               <div class="mt-5">
                <a class="btn" data-toggle="collapse" href="#multiCollapseExample1" role="button" aria-expanded="false" aria-controls="multiCollapseExample1">您有促销代码吗？↓</a>
                <span class="badge badge-dark"  id="dropdownMenuLink" data-toggle="dropdown" aria-expanded="false">?</span>
                <div class="collapse multi-collapse" id="multiCollapseExample1">
                        <div class="input-group mb-3">
                            <input type="text" class="form-control" placeholder="" aria-label="Recipient's username" aria-describedby="button-addon2">
                            <div class="input-group-append">
                              <button class="btn btn-outline-secondary mx-1" type="button" id="button-addon2">提交</button>
                            </div>
                          </div>
                  </div>
                    <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
                        <p style="font-size: 10px;">如果您遇到问题，请查看该促销的条款和条件，通常单击“查看详细信息”即可找到这些条款和条件，促销可以在线或者在电子邮件或邮件页脚中找到。促销代码不能用于定制商品。</p>
                    </div>
               </div>
               <!--  -->
               <div class="row my-3" >
                <div class="dropdown">
                    <span class="ml-4">小计</span>
                    <span class="badge badge-dark"  id="dropdownMenuLink2" data-toggle="dropdown" aria-expanded="false">?</span>
                    <div class="dropdown-menu" aria-labelledby="dropdownMenuLink2">
                        <p style="font-size: 10px;">实际商品总额指应用任何适用折扣前的订单总金额。</p>
                    </div>
                </div>
                <div >￥{{mainprice}}.00元</div>
               </div>
                <div class="row my-3">
                    <span class="ml-4">预计运费和手续费</span>
                    <span>￥{{otherprice}}.00元</span>
                </div>
                <hr>
                <div class="row my-3">
                    <span class="ml-4">总计</span>
                    <span>￥{{allprice}}.00元</span>
                </div>
                <hr>
                <button type="button" class="btn btn-dark btn-lg btn-block" style="border-radius: 24px;">结算</button>
            </div>
    </div>
    </div>
    <div class="bottom my-3">    
     <div class="container">
        <h4>收藏</h4>
        <p v-if="mycollection.length==0">无商品保存至你的收藏</p>
            <!--  -->
            <div class="row">
            <div class="row col-md-6 my-3" v-for="(mc,index) in mycollection" >
                <div class="col-md-4">
                  <img :src="mc.imgsrc" alt="...">
                </div>
                <div class="col-md-8">
                  <div class="card-body">
                    <div class="row">
                    <h6 class="card-title">{{mc.name}}</h6>
                    <span>￥{{mc.price}}.00</span>
                    </div>
                    <span class="card-text text-muted my-1" style="font-size: 16px;">{{mc.type}}</span>
                      <span class="card-text text-muted" style="font-size: 16px;" >尺码</span>
                      <select class="custom-select my-0 mr-sm-2" id="inlineFormCustomSelectPref"  @click="whatsize($event,index)">
                        <!-- <option  v-for="mc2 in mc.size">{{mc2}}</option> -->
                        <option  v-for="mc2 in mc.size" :selected="mc.usize==mc2">{{mc2}}</option>
                        <!-- <option value="">1</option>
                        <option value="" v-bind:selected="false">2</option>
                        <option value="">4</option>
                        <option value="">6</option> -->
                    </select>
                  </div>
                  <button type="button" class="btn btn-light" style="border-radius: 10px;" @click="addShopping(index)">加入购物车</button> 
                </div>
      </div>
              </div>           
            </div>
     </div>
     <a href="javascript:;" v-show="mycollection.length>=4" style="color: #ccc;font-size: 15px;">转至你的收藏</a>
    <!--  -->
    </div>
    <div class="bott" style="display: block;margin-bottom: 0;bottom:0;background: #000;">
      <!-- 文字栏 -->
      <div>
          <ul class="list-group list-group-horizontal-sm" id="ds">
              <ul id="card1" v-for="(item,index) in arr3">
                  <li class="card-text text-white pt-3" style="font-size:14px;font-weight: 400;">{{item.name}}</li>
                  <li class="card-text text-white pt-3" style="font-size:14px;font-weight: 400;" v-for="items in item.aa">{{items}}</li>
              </ul>
              <ul id="card2" v-for="(item,index) in arr4">
                  <li class="card-text text-white pt-3" style="font-size:14px;font-weight: 400;">{{item.name}}</li>
                  <li class="card-text pt-3" style="font-size:12px;font-weight: 400;color: #7e7e7e;" v-for="items in item.aa">{{items}}</li>
              </ul>
              <ul class="vechat">
                  <button class="rounded-circle" id="vechatT">
                      <svg class="social-link-icon" width="30px" fill="#111" height="30px" viewBox="0 0 24 24"
                          id="vechatT1">
                          <path
                              d="M13.76 12a.612.612 0 0 0-.44.2c-.133.133-.2.267-.2.4s.067.267.2.4.293.2.48.2.36-.067.52-.2c.16-.133.24-.267.24-.4s-.08-.267-.24-.4a.848.848 0 0 0-.56-.2zm-2-2.88c.213 0 .4-.08.56-.24.16-.16.24-.347.24-.56a.645.645 0 0 0-.24-.52 1.062 1.062 0 0 0-.56-.24c-.213-.027-.413.04-.6.2s-.28.347-.28.56c0 .213.093.4.28.56.187.16.387.24.6.24zm-4.24-1.6c-.267 0-.493.08-.68.24-.187.16-.28.347-.28.56 0 .213.093.4.28.56.187.16.4.24.64.24s.427-.08.56-.24a.85.85 0 0 0 .2-.56.85.85 0 0 0-.2-.56.645.645 0 0 0-.52-.24zM12 0C9.813 0 7.8.533 5.96 1.6A11.793 11.793 0 0 0 1.6 5.96C.533 7.8 0 9.813 0 12s.533 4.2 1.6 6.04a11.793 11.793 0 0 0 4.36 4.36C7.8 23.467 9.813 24 12 24s4.2-.533 6.04-1.6a11.793 11.793 0 0 0 4.36-4.36C23.467 16.2 24 14.187 24 12s-.533-4.2-1.6-6.04a11.793 11.793 0 0 0-4.36-4.36C16.2.533 14.187 0 12 0zM9.52 15.36c-.427 0-1.013-.08-1.76-.24l-.4-.08-2.16 1.12.64-1.84c-1.653-1.173-2.48-2.56-2.48-4.16 0-1.44.6-2.667 1.8-3.68 1.2-1.013 2.653-1.52 4.36-1.52 1.493 0 2.827.413 4 1.24s1.893 1.853 2.16 3.08l-.64-.08c-1.44 0-2.667.48-3.68 1.44-1.013.96-1.52 2.107-1.52 3.44 0 .427.08.853.24 1.28h-.56zm8.96 2.16l.48 1.52-1.68-.96c-.8.213-1.413.32-1.84.32-1.44 0-2.667-.427-3.68-1.28-1.013-.853-1.52-1.893-1.52-3.12s.507-2.28 1.52-3.16c1.013-.88 2.227-1.32 3.64-1.32 1.413 0 2.64.44 3.68 1.32 1.04.88 1.56 1.947 1.56 3.2 0 1.253-.72 2.413-2.16 3.48zM17.12 12a.612.612 0 0 0-.44.2c-.133.133-.2.267-.2.4s.067.267.2.4.293.2.48.2.36-.067.52-.2c.16-.133.24-.267.24-.4s-.08-.267-.24-.4a.848.848 0 0 0-.56-.2z">
                          </path>
                      </svg>
                  </button>
                  <img class="social-link-image mb3-sm z3" id="weixin"
                      src="https://static.nike.com/a/images/w_960,c_limit/588c1078-1b99-40f6-86f2-3636daf5946d/image.png"
                      alt="WeChat QR Code" />
              </ul>
              <ul class="weibo">
                  <button class="rounded-circle" id="weiboT">
                      <svg class="social-link-icon" width="30px" fill="#111" height="30px" viewBox="0 0 24 24"
                          id="weiboT1">
                          <path
                              d="M12 0C9.813 0 7.8.533 5.96 1.6A11.793 11.793 0 0 0 1.6 5.96C.533 7.8 0 9.813 0 12s.533 4.2 1.6 6.04a11.793 11.793 0 0 0 4.36 4.36C7.8 23.467 9.813 24 12 24s4.2-.533 6.04-1.6a11.793 11.793 0 0 0 4.36-4.36C23.467 16.2 24 14.187 24 12s-.533-4.2-1.6-6.04a11.793 11.793 0 0 0-4.36-4.36C16.2.533 14.187 0 12 0zm-1.6 18.56c-1.92 0-3.573-.4-4.96-1.2-1.547-.907-2.32-2.027-2.32-3.36 0-1.493.88-3.12 2.64-4.88 1.067-1.067 2.16-1.813 3.28-2.24 1.12-.427 1.893-.427 2.32 0 .427.427.507 1.12.24 2.08-.053.16 0 .24.16.24l.24-.08c.907-.373 1.707-.56 2.4-.56.693 0 1.187.2 1.48.6.293.4.28.973-.04 1.72-.053.16-.053.267 0 .32.053.053.16.107.32.16.587.16 1.08.44 1.48.84.4.4.6.893.6 1.48 0 .747-.333 1.507-1 2.28-.667.773-1.56 1.373-2.68 1.8-1.28.533-2.667.8-4.16.8zM16.64 8.4c-.267-.267-.613-.373-1.04-.32-.107.053-.227.04-.36-.04a.638.638 0 0 1-.28-.36.441.441 0 0 1 .08-.44.845.845 0 0 1 .4-.28 2.663 2.663 0 0 1 1.12.08c.373.107.693.307.96.6s.44.64.52 1.04c.08.4.067.787-.04 1.16a.638.638 0 0 1-.28.36.506.506 0 0 1-.44.04.607.607 0 0 1-.36-.32c-.08-.16-.093-.293-.04-.4.16-.427.08-.8-.24-1.12zm3.6 2.16a.771.771 0 0 1-.32.4.517.517 0 0 1-.52.04.762.762 0 0 1-.4-.36.607.607 0 0 1-.04-.48c.16-.533.187-1.093.08-1.68a2.945 2.945 0 0 0-.76-1.52 3.43 3.43 0 0 0-1.44-.92A2.658 2.658 0 0 0 15.2 6a1 1 0 0 1-.52-.12.648.648 0 0 1-.28-.4.6.6 0 0 1 .08-.52c.107-.16.24-.24.4-.24a3.957 3.957 0 0 1 2.36.08 4.79 4.79 0 0 1 2 1.32c.56.613.92 1.32 1.08 2.12.16.8.133 1.573-.08 2.32zm-10.48.16c-1.44.16-2.627.627-3.56 1.4-.933.773-1.36 1.627-1.28 2.56.08.933.653 1.68 1.72 2.24 1.067.56 2.32.773 3.76.64s2.627-.587 3.56-1.36c.933-.773 1.36-1.627 1.28-2.56-.08-.933-.653-1.68-1.72-2.24-1.067-.56-2.32-.76-3.76-.6v-.08zm2.48 4.48c-.267.64-.773 1.12-1.52 1.44-.747.32-1.467.36-2.16.12-.693-.24-1.173-.653-1.44-1.24-.267-.587-.253-1.187.04-1.8s.787-1.067 1.48-1.36c.693-.293 1.387-.347 2.08-.16.693.187 1.2.573 1.52 1.16.32.587.32 1.2 0 1.84zm-1.84-1.44c-.16-.107-.32-.053-.48.16-.053.053-.067.133-.04.24.027.107.093.16.2.16.213.107.373.053.48-.16.053-.107.067-.2.04-.28-.027-.08-.093-.12-.2-.12zm-1.04.4c-.213-.107-.453-.107-.72 0a1.211 1.211 0 0 0-.6.48.806.806 0 0 0-.12.64c.053.213.2.373.44.48.24.107.48.12.72.04.24-.08.427-.24.56-.48.133-.24.173-.467.12-.68a.716.716 0 0 0-.4-.48z">
                          </path>
                      </svg>
                  </button>
              </ul>
          </ul>
      </div>
      <div class="dx1">
          <ul class="list-group list-group-horizontal" id="dx">
              <li v-for="(item,index) in arr5">
                  <p class="text-secondary pl-5" style="font-size:10px;" href="#">&nbsp;{{item}}&nbsp;</p>
                  
              </li>
              <p class="text-secondary pl-5" style="font-size:10px;" href="#">&nbsp;  <img alt="上海工商" class="d-sm-ib mr1-sm" src="https://static.nike.com/a/images/w_960,c_limit/fdbd071f-7dfc-4efc-a30c-da2be519db74/image.png">
                  上海工商&nbsp;</p>
          </ul>
      </div>
  </div>

    </div>
    <!--  -->
    
   
</body>
<script> 
Vue.config.productionTip=false;//防止vue运行时候产生生产提示
const vm=new Vue({
el:'#root',
data(){
    return{

        num:[1,2,3,4,5,6,7,8,9,10],
        otherprice:1,
        myshoppings:[{
            name:'NiKe Everyday Plus Cushinned',
            type:'训练运动袜（一双）',
            color:'青石蓝/浅紫色',
            size:['22-24','24-26','26-28','28-30'],
            price:59,
            usize:1,
            imgsrc:'../Nike_login/imgs/nike2.jpg',
            unum:0,
        },
        {
            name:'Jordan 23 Engineered',
            type:'statement男子T恤',
            color:'黑/黑',
            price:798,
            size:['S','M','L','XL','XXL222'],
            imgsrc:'../Nike_login/imgs/nike1.jpg',
            unum:1,
            usize:1,
        },
        {
            name:'Nike x Hello Kitty',
            type:'男/女T恤',
            color:'大学蓝',
            price:329,
            size:['M','L','XL'],
            imgsrc:'../Nike_login/imgs/nike3.jpg',
            unum:1,
            usize:1,
        },
        {
            name:'Jordan',
            type:'男子短袖T恤',
            color:'中灰',
            price:299,
            size:['M','L','XL','XXL'],
            imgsrc:'../Nike_login/imgs/nike4.jpg',
            unum:1,
            usize:1,
        }],
        mycollection:[{ name:'Air Jordan 1 Mid SE(GS)',
            type:'大童运动鞋',
            color:'椒红/花粉黄/军械深海蓝/白色',
            size:['35','36','','38','39','40',],
            price:799,
            unum:1,
            usize:1,
            imgsrc:'../Nike_login/imgs/nike5.jpg',
            },
            
        { name:'Nike Blazer Low 77 Jumbo',
            type:'男子运动鞋',
            color:'白色/白色/帆白/黑',
            size:['40','41','42','42.5','43','44'],
            price:699,
            unum:1,
            usize:1,
            imgsrc:'../Nike_login/imgs/nike6.jpg'},
        { name:'2020赛季洛杉矶湖人队(Anthony Davis)',
            type:'Nike NBA Swingman Jersey',
            size:['S(US40)','M(US44)','L(US48)','XL(US52)','2XL(US56)','3XL(US60)'],
            color:'阿马里洛黄/全域紫',
            price:799,
            unum:1,
            usize:1,
            imgsrc:'../Nike_login/imgs/nike7.jpg'},
        ],
        flagdown:false,
        flagdown2:false,
        flagdown3:false,
        flagdown4:false,
        down1:1,
        help:['订单状态','配送','退换货','联系我们','隐私政策','销售条款','使用条款','向我们发送反馈'],
        zhanghu:['档案','订单','收藏','收件箱','体验','账户设置','退出'],
        arrdown:[
            {
                name:'潮流趋势',
                aa:['街舞专属系列','上海时装周同款','基础百搭体恤','辣妹风','配件/装备',]
            },
            {
                name:'新品上市',
                aa:['本月所有新品','男子新品','女子新品','儿童新品','JORDAN新品',]
            },
            {
                name:'尖货专区',
                aa:['NIKE APP专属尖货','SNKRS新品上市','耐看读物',]
            },
        ],
        arrdown1:[
            {
                name:'鞋类',
                aa:['所有鞋类','跑步','篮球','休闲','足球','拖鞋','运动/健身','滑板','网球',]
            },
            {
                name:'服装',
                aa:['所有服装','T恤','短裤','球衣','连帽衫/卫衣','运动裤/休闲裤','外套/夹克',]
            },
            {
                name:'运动集结',
                aa:['NBA','跑步','滑板','瑜伽','网球','折扣优惠','会员限定',]
            },
        ],
        arrdown2:[
            {
                name:'鞋类',
                aa:['所有鞋类','婴童(11CM-16CM)','幼童(17CM-22CM)','大童(35.5-40欧码)',]
            },
            {
                name:'服装',
                aa:['所有服装','婴童(85-104CM)','幼童(96-122CM)','大童(122-170CM)',]
            },
            {
                name:'配件',
                aa:['包','袜子','帽子和头带','太阳镜']
            },
        ],
        arr3:[
            {
                name:'电子礼品卡',
                aa:['企业团购','附近商店','订阅电子邮件','注册NIKE会员','向我们发送反馈']
            },               
        ],
        arr4:[ {
                name:'获得帮助',
                aa:['订单状态','配送方式','退换货','付款选项','联系我们']
            },
            {
                name:'关于NIKE',
                aa:['新闻','投资者','招贤纳士','新品预览']
            },],
        arr5:['分类浏览','使用条款','销售条款','隐私政策','沪ICP备14009339号'],
      }
},
mounted(){
    console.log(this.mycollection[0].length);
    console.log(this.mycollection[1]);
    for(var i=0;i<this.mycollection.length;i++){
    localStorage.setItem('things',JSON.stringify(this.mycollection[i]))
  }
    for(var i=0;i<this.myshoppings.length;i++){
    localStorage.setItem('things',JSON.stringify(this.myshoppings[i]))
  }
},
methods:{
  // 删除购物车的商品
  delShopping(index){
    this.myshoppings.splice(index,1)
  },
  //把商品添加到收藏栏去
  addIntoCollection(index){
    // 先把所点击的商品加入到收藏中
    this.mycollection.unshift(this.myshoppings[index])
    // 删除掉原来的商品
    this.delShopping(index)
    // 只让收藏栏显示前四个商品
    this.mycollection=this.mycollection.slice(0,4)
  },
  // 把收藏栏的东西给加入到购物车
  addShopping(index){
    this.myshoppings.unshift(this.mycollection[index])
    this.mycollection.splice(index,1)
  },
  // 确定每个商品所选购的数量
  whatnum(e ,index){
    console.log(e.target.value);
    this.myshoppings[index].unum=e.target.value
  },
  whatsize2(e ,index){
    console.log(e.target.value);
    for(var i=0;i<this.myshoppings[index].size.length;i++){
      
      if(this.myshoppings[index].size[i]==e.target.value){
        this.myshoppings[index].usize=e.target.value
      }
    }
  },
  whatsize(e ,index){
    console.log(e.target.value); 
    for(var i=0;i<this.mycollection[index].size.length;i++){
      if(this.mycollection[index].size[i]==e.target.value){
        this.mycollection[index].usize=e.target.value
      }
    }
  },
  show(){             //显示与隐藏
        this.flagdown = !this.flagdown;
    },
    hid(){             //显示与隐藏
        this.flagdown = !this.flagdown;
    },
    show2(){             //显示与隐藏
        this.flagdown2 = !this.flagdown2;
    },
    hid2(){             //显示与隐藏
        this.flagdown2 = !this.flagdown2;
    },
    show3(){             //显示与隐藏
        this.flagdown3 = !this.flagdown3;
    },
    hid3(){             //显示与隐藏
        this.flagdown3 = !this.flagdown3;
    },
    show4(){             //显示与隐藏
        this.flagdown4 = !this.flagdown4;
    },
    hid4(){             //显示与隐藏
        this.flagdown4 = !this.flagdown4;
    },
},
computed:{
  allprice(){
    return  this.mainprice+this.otherprice
  },
  mainprice(){
    var sum=0
    for(var i=0;i<this.myshoppings.length;i++){
      sum=sum+this.myshoppings[i].price*this.myshoppings[i].unum
    }
    return sum
  } 
},
})
</script>
<!--  -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</html>